package com.wisnews.pojo.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuyd
 * @since 2021-02-08
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("t_sys_visit_log")
public class VisitLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String logId;

    /**
     * 线程ID
     */
    private String threadId;

    /**
     * 访问ip
     */
    private String ipAddr;

    /**
     * url
     */
    private String url;

    /**
     * http方法 GET POST PUT DELETE PATCH
     */
    private String httpMethod;

    /**
     * 访问的controller方法
     */
    private String visitControllerMethod;

    /**
     * 访问耗时
     */
    private String timeCost;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 浏览器
     */
    private String browser;

    /**
     * 请求头userAgent
     */
    private String userAgent;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
